package com.example.bean;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class GoodsBrowsV {
    private int error_code;
    private int size;
    private JSONArray goods;

    public GoodsBrowsV(int size, int goods_number) {
        error_code = 0;
        this.size = size;
        goods = new JSONArray();
        List<GoodsBriefV> gbvList = GoodsBriefV.getGBVList(size, goods_number);
        if (gbvList != null) {
            goods.addAll(gbvList);
        }
    }
}
